<div id="toolbox">
    <h3>Story Toolbox</h3>
    <ul>
        <% if params[:relationship_id] %>
            <li><%= link_to "all shared stories", {# link_to options
                    :controller => 'story',
                    :action => 'shared_stories'} %></li>
            <li><%= link_to "#{@owner.first_name} #{@owner.last_name}'s shared stories", {# link_to options
                    :controller => 'story',
                    :action => 'shared_stories',
                    :relationship_id => params[:relationship_id]} %></li>
        <% end %>
            <li><%= link_to "all stories", {# link_to options
                    :controller => 'story'},
                    {:class => (controller.action_name == "index" ? "current" : "")
                    } %></li>
            <li><%= link_to "new story", {# link_to options
                    :controller => 'story',
                    :action => 'new'} %></li>
    </ul>
    <strong>Categories</strong>
    <ul>
    <% @categories.each do |category| %>
        <li><%= link_to category.title, {# link_to options
                    :controller => 'story',
                    :action => 'in_category',
                    :id => category.title},
                    {:class => (request.path_parameters['id'] == category.title ? "current" : "")
                    }%></li>
    <% end %>
    </ul>
</div>